﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<center>
<table id="maintable">
<tr>
<th style="width:10%" >
Действие
</th>
<th style="width:30%">
Фамилия
</th>
<th style="width:30%">
Имя Отчество
</th>
<th style="width:15%">
Телефон
</th>
<th style="width:15%">
Email
</th>
</tr>
<%foreach (ElectronicRecords.Models.Clients  c in (ViewData["Clients"]as List<ElectronicRecords.Models.Clients>))  {%>
<tr>
<td>
<%=Html.ActionLink("Создать запись", "Create", new
{
    proc = ViewData["procid"],
    spec = ViewData["specid"],
    date = ViewData["date"],
    time = ViewData["time"],
    clientid = c.ID_Client
}, new  { @class="g-button"})%>
</td>
<td><%=c.Firstname %></td>
<td><%=c.Lastname %></td>
<td><%=c.Phone %></td>
<td><%=c.Email %></td>
</tr>
<%} %>
</table>
</center>